package com.cracker.websocket.server.dao;

import com.cracker.websocket.server.entity.ChatRoomEntity;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ChatRoomDao {
    public ChatRoomEntity getById(String id) {
        ChatRoomEntity chatRoomEntity = new ChatRoomEntity();
        chatRoomEntity.setId(id);
        chatRoomEntity.setCreatedAt(new Date());
        return chatRoomEntity;
    }
}
